home *** CD-ROM | disk | FTP | other *** search
/ Mobiclic 95 / MOBICLIC 95.ISO / mac / MWB_DATA / TCH095 / TCH095_02 / tch095_02.swf / scripts / frame_1 / DoAction.as
Text File  |  2007-06-28  |  2KB  |  89 lines

  1. function joueSonTch(my_MC, lListeSons, lNomSon, lFaitAvancer)
  2. {
  3.    lPosSon = getPos(lListeSons,lNomSon);
  4.    my_MC.gSonJoue = lPosSon;
  5.    my_MC.my_music.setVolume(10);
  6.    if(my_MC[_root.gLangue + "_my_comment_" + lPosSon] != undefined)
  7.    {
  8.       _root.dernierComment = my_MC[_root.gLangue + "_my_comment_" + lPosSon];
  9.       _root.gCommentOn = 1;
  10.       my_MC[_root.gLangue + "_my_comment_" + lPosSon].start();
  11.       if(lFaitAvancer === 1)
  12.       {
  13.          my_MC.gotoAndPlay(my_MC._currentframe + 1);
  14.       }
  15.    }
  16. }
  17. function stopComment(lComment)
  18. {
  19.    _root.gCommentOn = 0;
  20.    lComment.stop();
  21. }
  22. function gereZones(lZone, lEtat)
  23. {
  24.    lZoneNum = lZone.split("_")[1];
  25.    lType = lZone.split("_")[2];
  26.    if(_root.activeZone != 0)
  27.    {
  28.       if(lEtat == "load")
  29.       {
  30.          if(_root.activeZone === lZoneNum)
  31.          {
  32.             _root[lZone].useHandCursor = 0;
  33.             _root[lZone].gotoAndStop(2);
  34.          }
  35.       }
  36.    }
  37.    else
  38.    {
  39.       switch(lEtat)
  40.       {
  41.          case "load":
  42.             _root[lZone].gotoAndStop(1);
  43.             break;
  44.          case "roll":
  45.             if(_root.gOnDir)
  46.             {
  47.                getURL("6",280);
  48.             }
  49.             my_sound = new Sound();
  50.             my_sound.attachSound("B_" + lZoneNum + ".mp3");
  51.             my_sound.start();
  52.             _root[lZone].gotoAndStop(2);
  53.             break;
  54.          case "leave":
  55.             if(_root.gOnDir)
  56.             {
  57.                getURL("6",-1);
  58.             }
  59.             my_sound.stop();
  60.             _root[lZone].gotoAndStop(1);
  61.             break;
  62.          case "clic":
  63.             if(_root.gOnDir)
  64.             {
  65.                getURL("6",-1);
  66.             }
  67.             _root.typeZone = lType;
  68.             _root.activeZone = lZoneNum;
  69.             _root.gotoAndPlay("voc_" + lZoneNum);
  70.       }
  71.    }
  72. }
  73. gOnProd = 0;
  74. gOnDir = 1;
  75. gAllowFlags = 0;
  76. gInterOk = 0;
  77. if(gOnDir === 0)
  78. {
  79.    gLangue = "AN";
  80. }
  81. gST = 1;
  82. gFirstTime = 1;
  83. gMusicOn = 0;
  84. _root.sousTitre = 0;
  85. gListColors = ["0x000000","0xFFFFFE","0xFFFF00","0x999900","0x66CC33","0x007700","0x6699FF","0x0000FF","0xFF0000","0xCC0000","0xCC9933","0x663333","0xFF00FF","0x990099"];
  86. gListPolices = ["Arial","MattoSans-Bold","Comic Sans MS","Futura","Handwriting","Times","Papyrus","Fine Hand","AgrafieLL","L\'Olivier-Irregular","Textile","DoloresBold","SF Espionage Medium,Freehand591 BT"];
  87. gListCorps = [9,10,12,14,18,24,36,48,72];
  88. _root.activeZone = 0;
  89.